//
//  CellForPay_input.m
//  UESTCPioneer
//
//  Created by sss on 14-8-11.
//  Copyright (c) 2014年 Sway. All rights reserved.
//

#import "CellForPay_input.h"

@implementation CellForPay_input


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self.contentView addSubview:self.payNum];
        [self.contentView addSubview:self.staticLabel];
//        UILabel *yuan = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width-5, self.frame.size.height)];
//        [yuan setTextAlignment:NSTextAlignmentRight];
//        yuan.text = @"元";
//        yuan.textColor = [UIColor colorWithRed:119.0/255.0 green:123.0/255.0 blue:134.0/255.0 alpha:1];
//        [self.contentView addSubview:yuan];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (void)setFrame:(CGRect)frame
{
    frame.origin.x += 10;
    frame.size.width -= 2 * 10;
    [super setFrame:frame];
}

- (UILabel *)staticLabel
{
    if (!_staticLabel)
    {
        _staticLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.frame.origin.y, 180, self.frame.size.height)];
        _staticLabel.textColor = [UIColor colorWithRed:119.0/255.0 green:123.0/255.0 blue:134.0/255.0 alpha:1];
    }
    return _staticLabel;
}

- (UILabel *)payNum
{
    if (!_payNum)
    {
        _payNum = [[UILabel alloc] initWithFrame:CGRectMake(150,8, 170, self.frame.size.height-16)];
        _payNum.textColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:1];
    }
    return _payNum;
}


@end
